Skip to content

feat(pr-route): add reusable pr-route workflow - #110

Merged
Andreas-Garcia merged 3 commits into
mainfrom
feature/pr-route-workflow-106
Dec 2, 2026
Merged

Andreas-Garcia merged 3 commits into
mainfrom
feature/pr-route-workflow-106

Conversation

@Andreas-Garcia

Copy link
Copy Markdown
Member

Summary

Adds the reusable pr-route.yml: one implementation of the PR test-routing rule (BehindTheMusicTree/github-config#85), replacing the five per-repository copies as they migrate.

Issues

Closes #106
Refs BehindTheMusicTree/python-project-standards#33

Changes

  • .github/workflows/pr-route.yml: outputs applicable; rules from .github/pr-route.json (input rules-file) read at the PR base commit; inline stdlib classifier; fail closed.
  • build_inputs replaces genre-kit's BUILD_INPUTS and pipelines' package-readme rule. Behaviour change for pipelines: modifying a package README now skips; deleting or renaming it away still runs everything.
  • A workflow file is skippable only when named in skip_files; the rules file and the calling workflow never are.
  • .github/tests/pr-route.sh and a Test actions job; README section.

Test plan

  • bash .github/tests/pr-route.sh: cases of the api-kit, genre-kit and pipelines routers, plus fail-closed cases.
  • actionlint, shellcheck .github/tests/pr-route.sh: clean.
  • Mutation checks (rules read from head, no --no-renames, two-dot diff, no --ignore-submodules, no normpath) each fail the suite.
  • Not covered: a real workflow_call run; the first consumer migration exercises it.

Screenshots

N/A

Risk

change, standard depth: new reusable workflow with no caller yet. A wrong false would skip tests in future callers. No finding awaiting decision.

v6.8.0 is still unpublished (lost push event, #107): this PR's release waits for that recovery.

How to revert

Revert the merge; no caller depends on it yet.

Deployment notes

N/A

Post-deploy verification

First consumer (BehindTheMusicTree/genre-tree-view#458 or a phase D migration): a docs-only PR skips the routed jobs with Tests success green, a code PR runs them.

🤖 Generated with Claude Code

Andreas-Garcia and others added 3 commits December 2, 2026 19:35
One implementation of the PR test-routing rule: rules from the base commit's .github/pr-route.json, fail closed.

Closes #106
Refs BehindTheMusicTree/python-project-standards#33

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…d submodules

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@Andreas-Garcia
Andreas-Garcia enabled auto-merge (squash) December 2, 2026 18:55
@Andreas-Garcia
Andreas-Garcia merged commit 0009272 into main Dec 2, 2026
14 checks passed
@Andreas-Garcia
Andreas-Garcia deleted the feature/pr-route-workflow-106 branch December 2, 2026 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add reusable pr-route.yml: one implementation of the PR test-routing rule

1 participant